using System.ComponentModel;

namespace Pdf2epub.BusinessLogic
{
    internal class FeedbackServiceBusyContent : INotifyPropertyChanged
    {
        private string m_DetailText;
        private string m_MainText;

        public event PropertyChangedEventHandler PropertyChanged;

        public string DetailText
        {
            get { return m_DetailText; }
            set
            {
                m_DetailText = value;
                OnPropertyChanged("DetailText");
            }
        }

        public string MainText
        {
            get { return m_MainText; }
            set
            {
                m_MainText = value;
                OnPropertyChanged("MainText");
            }
        }

        protected virtual void OnPropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}